<%@ include file="/common/taglibs.jsp"%>

<head>
    <title><fmt:message key="infoDetail.title"/></title>
    <meta name="heading" content="<fmt:message key='infoDetail.heading'/>"/>
</head>

<s:form id="infoForm" action="saveInfo" method="post" validate="true">
    <li style="display: none">
        <s:hidden key="info.id"/>
    </li>
    <s:textfield key="info.auditAdminId" required="true" maxlength="255" cssClass="text medium"/>
<li>
    <s:checkbox key="info.auditFlag" cssClass="checkbox" theme="simple"/>
    <!-- For some reason, key prints out the raw value for the label (i.e. true) instead of the i18n key: https://issues.apache.org/struts/browse/WW-1958-->
    <s:label for="infoForm_info_auditFlag" value="%{getText('info.auditFlag')}" cssClass="choice desc" theme="simple"/>
</li>
    <s:textfield key="info.cityId" required="true" maxlength="255" cssClass="text medium"/>
    <s:textfield key="info.contact" required="true" maxlength="100" cssClass="text medium"/>
    <s:textfield key="info.content" required="true" maxlength="65535" cssClass="text medium"/>
    <s:textfield key="info.createTime" required="true" maxlength="255" cssClass="text medium"/>
    <s:textfield key="info.editPassword" required="true" maxlength="100" cssClass="text medium"/>
    <s:textfield key="info.ip" required="true" maxlength="15" cssClass="text medium"/>
    <s:textfield key="info.keywords" required="true" maxlength="100" cssClass="text medium"/>
    <s:textfield key="info.money" required="true" maxlength="255" cssClass="text medium"/>
<li>
    <s:checkbox key="info.personalFlag" cssClass="checkbox" theme="simple"/>
    <!-- For some reason, key prints out the raw value for the label (i.e. true) instead of the i18n key: https://issues.apache.org/struts/browse/WW-1958-->
    <s:label for="infoForm_info_personalFlag" value="%{getText('info.personalFlag')}" cssClass="choice desc" theme="simple"/>
</li>
<li>
    <s:checkbox key="info.picFlag" cssClass="checkbox" theme="simple"/>
    <!-- For some reason, key prints out the raw value for the label (i.e. true) instead of the i18n key: https://issues.apache.org/struts/browse/WW-1958-->
    <s:label for="infoForm_info_picFlag" value="%{getText('info.picFlag')}" cssClass="choice desc" theme="simple"/>
</li>
    <s:textfield key="info.provinceId" required="true" maxlength="255" cssClass="text medium"/>
    <s:textfield key="info.qq" required="true" maxlength="100" cssClass="text medium"/>
<li>
    <s:checkbox key="info.sellFlag" cssClass="checkbox" theme="simple"/>
    <!-- For some reason, key prints out the raw value for the label (i.e. true) instead of the i18n key: https://issues.apache.org/struts/browse/WW-1958-->
    <s:label for="infoForm_info_sellFlag" value="%{getText('info.sellFlag')}" cssClass="choice desc" theme="simple"/>
</li>
    <s:textfield key="info.tel" required="true" maxlength="20" cssClass="text medium"/>
    <s:textfield key="info.title" required="true" maxlength="255" cssClass="text medium"/>
    <s:textfield key="info.typeId" required="true" maxlength="255" cssClass="text medium"/>
    <s:textfield key="info.uid" required="true" maxlength="255" cssClass="text medium"/>
    <s:textfield key="info.updateTime" required="true" maxlength="255" cssClass="text medium"/>
    <s:textfield key="info.visitNum" required="true" maxlength="255" cssClass="text medium"/>

    <li class="buttonBar bottom">
        <s:submit cssClass="button" method="save" key="button.save" theme="simple"/>
        <c:if test="${not empty info.id}">
            <s:submit cssClass="button" method="delete" key="button.delete"
                onclick="return confirmDelete('Info')" theme="simple"/>
        </c:if>
        <s:submit cssClass="button" method="cancel" key="button.cancel" theme="simple"/>
    </li>
</s:form>

<script type="text/javascript">
    Form.focusFirstElement($("infoForm"));
</script>
